package com.mask.im.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.im.business.model.dto.FriendGroupDTO;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.model.entity.chat.IMFriendGroupsDO;
import com.mask.im.business.model.vo.UpdateFriendGroupVO;

import java.util.List;



/**
 * 群组管理
 * @author jian
 */

public interface IMFriendGroupsService extends IService<IMFriendGroupsDO> {

	RestResponse<List<IMFriendGroupsDO>> getCurrentAllGroup();

	RestResponse<List<FriendGroupDTO>> getFriendGroup();

	RestResponse<String> addFriendGroup(IMFriendGroupsDO imFriendGroupsDO);

	RestResponse<String> deleteFriendGroup(Integer groupId);

	RestResponse<String> updateFriendGroup(Integer groupId, String groupName,Integer sort);

	RestResponse<IMFriendGroupsDO> getByIdGroup(Integer groupId);

	RestResponse<IMFriendGroupsDO> getBelongsGroup(Integer friendId);

	RestResponse<IMFriendGroupsDO> moveFriendGroup(UpdateFriendGroupVO updateFriendGroupVO);
}

